package com.threeti.mecool.core.infrastructure.persistence.project;

import com.threeti.mecool.core.domain.model.project.Project;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ProjectRepository extends JpaRepository<Project, Long> {
  /** 取得特定员工参与的所有项目 */
  List<Project> findByParticipatedEmployeeId(Long empId);

  /** 根据项目名取得特定项目 */
  Project findByName(String projName);

  Project findByCode(String code);
}
